package 面向对象.day02;

/**
 * @author 王敬仟
 * World整个游戏
 */
public class World {
    public static void main(String[] args) {
        //准备战舰对象 各类潜艇对象 并赋值
        Battleship s=new Battleship();//战舰对象
        Bomb bomb=new Bomb(30,40);//炸弹对象
        Mine mine=new Mine(40,50);//水雷对象
        MineSubmarine ms=new MineSubmarine();//水雷潜艇
        ObserverSubmarine os=new ObserverSubmarine();//侦查潜艇
        TorpedoSubmarine ts=new TorpedoSubmarine();//鱼雷潜艇
        System.out.println(s.width+","+s.height+","+s.x+","+s.y+","+s.speed+","+s.life);
        System.out.println(bomb.width+","+bomb.height+","+bomb.x+","+bomb.y+","+bomb.speed);
        System.out.println(mine.width+","+mine.height+","+mine.x+","+mine.y+","+mine.speed);
        System.out.println(ms.width+","+ms.height+","+ms.x+","+ms.y+","+ms.speed);
        System.out.println(os.width+","+os.height+","+os.x+","+os.y+","+os.speed);
        System.out.println(ts.width+","+ts.height+","+ts.x+","+ts.y+","+ts.speed);
    }
}
